CREATE TABLE [dbo].[Author]
(
[Id] [int] NOT NULL,
[Name] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Code] [nchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Birthday] [date] NULL,
[Deathday] [date] NULL,
[IsDead] [bit] NULL,
[CityId] [int] NULL,
[Intro] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Status] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[Author] ADD CONSTRAINT [PK_Author] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Author] ADD CONSTRAINT [FK_Author_City] FOREIGN KEY ([CityId]) REFERENCES [dbo].[City] ([Id])
GO
